import { DefaultStage } from "../default-stage";
import AudioRecord from "./audio-recorder";


class InitializeComponent {

    public static async initialize(stage: DefaultStage): Promise<void> {
        // this.test();
    }

    // private static test() {
    //     console.log(AudioRecord.Supported)

    //     setTimeout(() => {
    //         console.log('start')
    //         AudioRecord.Instance.startRecording('audio/webm;codecs=opus',192000);
    //     }, 5000);

    //     setTimeout(async () => {
    //         const blob=await AudioRecord.Instance.stopRecording();
    //         console.log('stop',blob)
    //         const audioElement = new Audio();
    //         const audioUrl = URL.createObjectURL(blob as Blob);
    //         audioElement.src = audioUrl;
    //         audioElement.loop = true;
    //         audioElement.play();
    //     }, 10000);

    // }

}

export { InitializeComponent };
